@extends('layouts.default')  
@section('content')
<div class="box primary">        
    <header>
        <div class="icons">
            <a href="{{ URL::to('create')}}"><i class="fa fa-plus" 
                                                style="color:white;"></i>
            </a>
        </div>
        <h5>{{ Lang::get('messages.edit_repair_parts')}}</h5>
        <!-- .toolbar -->
        <div class="toolbar">
            <nav style="padding: 8px;">
                <a href="javascript:;" class="btn btn-default btn-xs collapse-box">
                    <i class="fa fa-minus"></i>
                </a> 
                <a href="javascript:;" class="btn btn-default btn-xs full-box">
                    <i class="fa fa-expand"></i>
                </a> 
                <a href="javascript:;" class="btn btn-danger btn-xs close-box">
                    <i class="fa fa-times"></i>
                </a> 
            </nav>
        </div><!-- /.toolbar -->
    </header>
    <div id="div-1" class="body">   
        @foreach ($values as $v) 
        {{ Form::model($v, array('route' => array('repair_parts.update', $v->id),
                        'method' => 'PUT','class'=>'form-horizontal','id'=>'form-validate')) }}
        <div class="form-group">
            {{ Form::label('repair', Lang::get('messages.repair').'*', array(
                            'class'=>'control-label col-lg-4')) }}
            <div class="col-lg-8">
                {{ Form::text('repair', isset($v->repair) ? $v->repair : '' , array(
                                'class' => 'form-control')) 
                }} <br/>
                <div id="validation-div" class="">

                </div>
            </div>
        </div>
        {{ Form::submit(Lang::get('messages.save_btn'), array(
                        'class' => 'btn btn-primary btn-line')) }}
        <input type="button" value="{{Lang::get('messages.cancel_btn')}}" 
               class="btn btn-danger btn-line" onClick="history.go(-1);
                           return true;">
        {{ Form::close() }}
        @endforeach
    </div>
</div>  
@stop
